package com.swxy.club.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.swxy.club.dto.User;
import com.swxy.club.dto.bo.LoginUserBO;
import com.swxy.club.dto.bo.UserBo;
import com.swxy.club.dto.bo.UserPageBo;
import com.swxy.club.dto.vo.CurrentUserVO;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpSession;
import java.util.List;
import java.util.Map;

/**
 * @author 易
 */
public interface UserService extends IService<User> {


    User getUserByIdNumber(String number);

    void addUser(UserBo form,HttpSession session);

    String uploadImage(MultipartFile file);

    Map<String, Object> login(LoginUserBO loginUserBO , HttpSession session);

    CurrentUserVO getCurrentUser(HttpSession session);

    List<User> selectUsers( List<Long> ids);

    Page<User> pageSelect(UserPageBo form);


}
